Data Science Study Plan: Break into Data Science by Aiden Johnson

Data Science Study Plan: Break into Data Science by Aiden Johnson

Author:Aiden Johnson [Johnson, Aiden]
Language: eng
Format: azw3, epub
Publisher: UNKNOWN
Published: 2020-08-31T16:00:00+00:00


from sklearn.ensemble import RandomForestRegressor

regressor = RandomForestRegressor(random_state=0, n_estimators=200) regressor.fit(X_train, y_train)

regressor.score(X_test, y_test)

After fitting the model we score the model to review the performance as well as predict the holdout test set to review the blind model performance.

Review the model performances — Iterate over models and parameters

The code box below demonstrates the step of creating predictions on the testing data set using the model you developed in the previous step.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.